package com.sannuo.detector.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sannuo.common.domain.Results;
import com.sannuo.detector.dao.ResultsMapper;
import com.sannuo.detector.service.ResultsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ResultsServiceImpl extends ServiceImpl<ResultsMapper, Results> implements ResultsService {

    @Autowired
    private ResultsMapper resultsMapper;

    @Override
    public int addReportList(Results results) {
        return resultsMapper.addReportList(results);
    }

    @Override
    public List<Results> findAllResult(Integer patientId) {
        return resultsMapper.findAllResult(patientId);
    }
}
